<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.6"/>
<title>LibCDS: HashSet Struct Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
  $(window).load(resizeHeight);
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">LibCDS
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.6 -->
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li class="current"><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
      <li><a href="functions.html"><span>Data&#160;Fields</span></a></li>
    </ul>
  </div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('structHashSet.html','');});
</script>
<div id="doc-content">
<div class="header">
  <div class="summary">
<a href="#pub-attribs">Data Fields</a>  </div>
  <div class="headertitle">
<div class="title">HashSet Struct Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>The implementation for hash set.  
 <a href="structHashSet.html#details">More...</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-attribs"></a>
Data Fields</h2></td></tr>
<tr class="memitem:a01595b67fca3eb3c78e1ba2f27f2ecc9"><td class="memItemLeft" align="right" valign="top"><a class="el" href="hash__set_8h.html#a3f18c37126779d3a8c5e05da64491c8e">HashSetData</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structHashSet.html#a01595b67fca3eb3c78e1ba2f27f2ecc9">pData</a></td></tr>
<tr class="memdesc:a01595b67fca3eb3c78e1ba2f27f2ecc9"><td class="mdescLeft">&#160;</td><td class="mdescRight">The container private information.  <a href="#a01595b67fca3eb3c78e1ba2f27f2ecc9">More...</a><br/></td></tr>
<tr class="separator:a01595b67fca3eb3c78e1ba2f27f2ecc9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3a87a0740e3343d0395d9e5b368abb28"><td class="memItemLeft" align="right" valign="top">int32_t(*&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structHashSet.html#a3a87a0740e3343d0395d9e5b368abb28">add</a> )(struct _HashSet *, Key, size_t)</td></tr>
<tr class="memdesc:a3a87a0740e3343d0395d9e5b368abb28"><td class="mdescLeft">&#160;</td><td class="mdescRight">Insert a key into the set.  <a href="#a3a87a0740e3343d0395d9e5b368abb28">More...</a><br/></td></tr>
<tr class="separator:a3a87a0740e3343d0395d9e5b368abb28"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abe4870ba7cf6e306fcb9a317f21d2249"><td class="memItemLeft" align="right" valign="top">int32_t(*&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structHashSet.html#abe4870ba7cf6e306fcb9a317f21d2249">find</a> )(struct _HashSet *, Key, size_t)</td></tr>
<tr class="memdesc:abe4870ba7cf6e306fcb9a317f21d2249"><td class="mdescLeft">&#160;</td><td class="mdescRight">Check if the set contains the designated key.  <a href="#abe4870ba7cf6e306fcb9a317f21d2249">More...</a><br/></td></tr>
<tr class="separator:abe4870ba7cf6e306fcb9a317f21d2249"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2c9af94dcbc527d9df74acee6fedf59c"><td class="memItemLeft" align="right" valign="top">int32_t(*&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structHashSet.html#a2c9af94dcbc527d9df74acee6fedf59c">remove</a> )(struct _HashSet *, Key, size_t)</td></tr>
<tr class="memdesc:a2c9af94dcbc527d9df74acee6fedf59c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Delete the designated key from the set.  <a href="#a2c9af94dcbc527d9df74acee6fedf59c">More...</a><br/></td></tr>
<tr class="separator:a2c9af94dcbc527d9df74acee6fedf59c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9712e6c03042cad84a80d88ae4daf6be"><td class="memItemLeft" align="right" valign="top">int32_t(*&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structHashSet.html#a9712e6c03042cad84a80d88ae4daf6be">size</a> )(struct _HashSet *)</td></tr>
<tr class="memdesc:a9712e6c03042cad84a80d88ae4daf6be"><td class="mdescLeft">&#160;</td><td class="mdescRight">Return the number of stored unique keys.  <a href="#a9712e6c03042cad84a80d88ae4daf6be">More...</a><br/></td></tr>
<tr class="separator:a9712e6c03042cad84a80d88ae4daf6be"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac9477149524e68fa4db94fa3a54b8d37"><td class="memItemLeft" align="right" valign="top">int32_t(*&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structHashSet.html#ac9477149524e68fa4db94fa3a54b8d37">iterate</a> )(struct _HashSet *, bool, Key *)</td></tr>
<tr class="memdesc:ac9477149524e68fa4db94fa3a54b8d37"><td class="mdescLeft">&#160;</td><td class="mdescRight">Iterate through the set to retrieve each key.  <a href="#ac9477149524e68fa4db94fa3a54b8d37">More...</a><br/></td></tr>
<tr class="separator:ac9477149524e68fa4db94fa3a54b8d37"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af72cbe44882afada033f555b5bdbdf76"><td class="memItemLeft" align="right" valign="top">int32_t(*&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structHashSet.html#af72cbe44882afada033f555b5bdbdf76">set_destroy</a> )(struct _HashSet *, void(*)(Key))</td></tr>
<tr class="memdesc:af72cbe44882afada033f555b5bdbdf76"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set the custom key resource clean method.  <a href="#af72cbe44882afada033f555b5bdbdf76">More...</a><br/></td></tr>
<tr class="separator:af72cbe44882afada033f555b5bdbdf76"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac975021efd7932687d397d556b99eb31"><td class="memItemLeft" align="right" valign="top">int32_t(*&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structHashSet.html#ac975021efd7932687d397d556b99eb31">set_hash</a> )(struct _HashSet *, uint32_t(*)(Key, size_t))</td></tr>
<tr class="memdesc:ac975021efd7932687d397d556b99eb31"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set the custom hash function.  <a href="#ac975021efd7932687d397d556b99eb31">More...</a><br/></td></tr>
<tr class="separator:ac975021efd7932687d397d556b99eb31"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>The implementation for hash set. </p>

<p>Definition at line <a class="el" href="hash__set_8h_source.html#l00014">14</a> of file <a class="el" href="hash__set_8h_source.html">hash_set.h</a>.</p>
</div><h2 class="groupheader">Field Documentation</h2>
<a class="anchor" id="a01595b67fca3eb3c78e1ba2f27f2ecc9"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="hash__set_8h.html#a3f18c37126779d3a8c5e05da64491c8e">HashSetData</a>* HashSet::pData</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>The container private information. </p>

<p>Definition at line <a class="el" href="hash__set_8h_source.html#l00016">16</a> of file <a class="el" href="hash__set_8h_source.html">hash_set.h</a>.</p>

</div>
</div>
<a class="anchor" id="a3a87a0740e3343d0395d9e5b368abb28"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int32_t(* HashSet::add)(struct _HashSet *, Key, size_t)</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Insert a key into the set. </p>
<dl class="section see"><dt>See Also</dt><dd><a class="el" href="hash__set_8h.html#a0fa05d698a7c3f57d6cb908316a770fa" title="Insert a key into the set. ">HashSetAdd</a> </dd></dl>

<p>Definition at line <a class="el" href="hash__set_8h_source.html#l00020">20</a> of file <a class="el" href="hash__set_8h_source.html">hash_set.h</a>.</p>

</div>
</div>
<a class="anchor" id="abe4870ba7cf6e306fcb9a317f21d2249"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int32_t(* HashSet::find)(struct _HashSet *, Key, size_t)</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Check if the set contains the designated key. </p>
<dl class="section see"><dt>See Also</dt><dd><a class="el" href="hash__set_8h.html#ab3d7f359f3b9c6b31660c72c987c42f0" title="Check if the set contains the designated key. ">HashSetFind</a> </dd></dl>

<p>Definition at line <a class="el" href="hash__set_8h_source.html#l00024">24</a> of file <a class="el" href="hash__set_8h_source.html">hash_set.h</a>.</p>

</div>
</div>
<a class="anchor" id="a2c9af94dcbc527d9df74acee6fedf59c"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int32_t(* HashSet::remove)(struct _HashSet *, Key, size_t)</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Delete the designated key from the set. </p>
<dl class="section see"><dt>See Also</dt><dd><a class="el" href="hash__set_8h.html#a6f84161453ce14a4600fb1e49307a51f" title="Delete the designated key from the set. ">HashSetRemove</a> </dd></dl>

<p>Definition at line <a class="el" href="hash__set_8h_source.html#l00028">28</a> of file <a class="el" href="hash__set_8h_source.html">hash_set.h</a>.</p>

</div>
</div>
<a class="anchor" id="a9712e6c03042cad84a80d88ae4daf6be"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int32_t(* HashSet::size)(struct _HashSet *)</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Return the number of stored unique keys. </p>
<dl class="section see"><dt>See Also</dt><dd><a class="el" href="hash__set_8h.html#ac118a8c9a09d5879f5a2755cc3cb7b68" title="Return the number of stored unique keys. ">HashSetSize</a> </dd></dl>

<p>Definition at line <a class="el" href="hash__set_8h_source.html#l00032">32</a> of file <a class="el" href="hash__set_8h_source.html">hash_set.h</a>.</p>

</div>
</div>
<a class="anchor" id="ac9477149524e68fa4db94fa3a54b8d37"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int32_t(* HashSet::iterate)(struct _HashSet *, bool, Key *)</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Iterate through the set to retrieve each key. </p>
<dl class="section see"><dt>See Also</dt><dd><a class="el" href="hash__set_8h.html#a42f4c28d1ff6a6b96a1e62faebb93d39" title="Iterate through the set to retrieve each key. ">HashSetIterate</a> </dd></dl>

<p>Definition at line <a class="el" href="hash__set_8h_source.html#l00036">36</a> of file <a class="el" href="hash__set_8h_source.html">hash_set.h</a>.</p>

</div>
</div>
<a class="anchor" id="af72cbe44882afada033f555b5bdbdf76"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int32_t(* HashSet::set_destroy)(struct _HashSet *, void(*)(Key))</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Set the custom key resource clean method. </p>
<dl class="section see"><dt>See Also</dt><dd><a class="el" href="hash__set_8h.html#ad6a086c3dbcf81fa50b95498a400b3d9" title="Set the custom key resource clean method. ">HashSetSetDestroy</a> </dd></dl>

<p>Definition at line <a class="el" href="hash__set_8h_source.html#l00040">40</a> of file <a class="el" href="hash__set_8h_source.html">hash_set.h</a>.</p>

</div>
</div>
<a class="anchor" id="ac975021efd7932687d397d556b99eb31"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int32_t(* HashSet::set_hash)(struct _HashSet *, uint32_t(*)(Key, size_t))</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Set the custom hash function. </p>
<dl class="section see"><dt>See Also</dt><dd><a class="el" href="hash__set_8h.html#a1363a0b1f2f9ca0bbfec951f1afb67f7" title="Set the custom hash function. ">HashSetSetHash</a> </dd></dl>

<p>Definition at line <a class="el" href="hash__set_8h_source.html#l00044">44</a> of file <a class="el" href="hash__set_8h_source.html">hash_set.h</a>.</p>

</div>
</div>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="structHashSet.html">HashSet</a></li>
    <li class="footer">Generated by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.6 </li>
  </ul>
</div>
</body>
</html>
